package Api.userinfsearch;

import common.result.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestParam;

@Api("通过类别和价格和筛选菜品")
public interface userinfosearch {
    @ApiOperation("通过菜品类别和价格和筛选菜品参数:菜品类别,最大接受价格，经度，纬度;返回list,每个item有饭店名称，图片url,评分(double),距离，评论数，0-2条评论 ")
    public ResponseResult FindResByPriceAndtype(
            @RequestParam(value = "typename") String typename,
            @RequestParam(value = "price") long price,
            @RequestParam(value = "longitude") double longitude,
            @RequestParam(value = "latitude") double latitude);


    @ApiOperation("参数:菜品类别,最大接受价格，经度，纬度;功能同上,多了个按距离排序而已")
    public ResponseResult FindResByPriceAndtypeAndSort(
            @RequestParam(value = "typename") String typename,
            @RequestParam(value = "price") long price,
            @RequestParam(value = "longitude") double longitude,
            @RequestParam(value = "latitude") double latitude
    );

    @ApiOperation("排行榜默认按照总榜排序;\"主食\",\"火锅\", \"小吃\",\"烘培\",\"海鲜\",\"汤羹\"")
    public ResponseResult FindResByFoodType(
            @RequestParam(value = "typename", required = false, defaultValue = "总榜") String typename,
            @RequestParam(value = "longitude") double longitude,
            @RequestParam(value = "latitude") double latitude
    );
}

